
#include"Logger.hpp"
#include<unistd.h>

int main()
{
    //确定日志所要刷新到的地方
    EnableConsoleLogStrategy();
    // EnableFileLogStrategy();

    LOG(LogLevel::DEBUG) << "hello world" << 100 << "lalalalala" << "byte";
    LOG(LogLevel::WARNING) << "hello world" << 100 << "hahahahaha" << "byte";
    LOG(LogLevel::ERROR) << "hello world" << 100 << "olololololol" << "byte";

    // std::string test = "hello world , hello log";
    // std::unique_ptr<LogStrategy> logger_ptr = std::make_unique<ConsoleLogStrategy>();
    // logger_ptr->Synclog(test);
    // logger_ptr->Synclog(test);
    // logger_ptr->Synclog(test);
    // logger_ptr->Synclog(test);

    return 0;
}
